//
//  ICMSelecteActivityView.h
//  ICrEAM
//
//  Created by rainimute on 16/10/28.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMSelecteActivityModel.h"
@class ICMActivityModel;
@class ICMAppointmentOtherInfoModel;
#import "ICMTitleTextFeildView.h"

@interface ICMSelecteActivityView : UIView

@property (nonatomic, assign) BOOL isPayForType;//索赔类型

//是否编辑模式
@property (nonatomic, assign) BOOL isEditType;
//是否预约编辑模式
@property (nonatomic, assign) BOOL isAppointmentType;
//预约跳转到接车
@property (nonatomic, strong) ICMAppointmentOtherInfoModel *otherInfoModel;
//编辑用到的所选活动model
@property (nonatomic, strong) ICMActivityModel *activityModel;

//vin码
@property (nonatomic, strong) ICMTitleTextFeildView *vinNumberView;

//选择的活动
@property (nonatomic ,strong) NSMutableArray *selectedActivitys;

@property (nonatomic, strong) NSMutableArray *activityModels;

@property (nonatomic, strong) UITableView *activityTableView;

@property (nonatomic, strong) NSMutableArray *selectedIndexs;

+ (instancetype)createSelecteActivityViewWithFrame:(CGRect)frame;

//获得活动数据
-(void)getActivityWithData:(id)data;

//编辑模式调用
- (void)setupSelecteActivityViewWithActivityModel:(ICMActivityModel*)activityModel;

//显示信息
- (void)showActMsg;

@end


/*ICMSelecteActivityCell*/
@class ICMSelecteActivityCell;
@protocol ICMSelecteActivityCellDelegate <NSObject>

@optional
- (void)didSelectedCell:(ICMSelecteActivityCell*)cell;

@end

@interface ICMSelecteActivityCell : UITableViewCell

@property (nonatomic, weak) id<ICMSelecteActivityCellDelegate>delegate;

@property (nonatomic, strong) UIButton *stateButton;

@property (nonatomic, strong) UILabel *activityNameLabel;

@property (nonatomic, strong) UILabel *subNameLabel;

@property (nonatomic, strong) UILabel *startTimeLabel;

@property (nonatomic, strong) UILabel *endTimeLabel;

- (void)setupSelecteActivityCellWithModel:(ICMSelecteActivityModel*)model andIsSelected:(BOOL)isSelected;

@end
